<template>
    <el-container>
        <!--左侧导航栏-->
        <el-aside width="auto">
            <SlideMenu></SlideMenu>
        </el-aside>
        <el-container>
            <!--头部-->
            <el-header>
                <Header></Header>
            </el-header>
            <!--主体-->
            <el-main>
                <HeadeTabs class="el-head-tabs"></HeadeTabs>
                <div class="el-main-container">
                    <router-view></router-view>
                </div>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
  import SlideMenu from "../components/inc/SlideTabs";
  import Header from "../components/inc/Header";
  import HeadeTabs from "../components/inc/HeadeTabs";
  export default {
      name: 'Index',
      components: {
          SlideMenu,
          Header,
          HeadeTabs
      },
      data() {
          return {
              isCollapse: false
          };
      },
      methods: {
          // 导航栏展开收起
          handleCollapse (collapse) {
              this.isCollapse = !collapse
          }
      }
  }
</script>

<style lang="scss" scoped>
    .el-container{
        height: 100%;
        .el-aside {
        }

        .el-header{
            background-color: $mainColor;
            text-align: center;
            line-height: 60px;
        }

        .el-main {
            background-color: $defaultBackgroundColor;
            padding: 0;

            display: flex;
            flex-direction: column;

            /*.el-head-tabs{*/
            /*    width: 100%;*/
            /*    background-color: white;*/
            /*    position: fixed;*/
            /*    top: 60px;*/
            /*    z-index: 99;*/
            /*}*/

            .el-main-container{
                flex: 9;
                padding: 0 20px;
            }
        }
    }

</style>
